package window;

public class ColumnBeans
{
  private String cName;
  private String cType;
  private String name;
  private String type;
  private int leng;
  private String comments;
  private boolean isNull;
  private boolean isPrimary;

  public String getComments()
  {
    this.comments = ((this.comments == null) ? this.name : this.comments);
    return this.comments;
  }

  public void setComments(String comments) {
    this.comments = comments;
  }

  public String getName()
  {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getType() {
    return this.type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public int getLeng() {
    return this.leng;
  }

  public void setLeng(int leng) {
    this.leng = leng;
  }

  public boolean isNull() {
    return this.isNull;
  }

  public void setNull(int isNull) {
    if (isNull == 0)
      this.isNull = false;
    else
      this.isNull = true;
  }

  public boolean isPrimary()
  {
    return this.isPrimary;
  }

  public void setPrimary(boolean isPrimary) {
    this.isPrimary = isPrimary;
  }

  public String getCName() {
    return this.cName;
  }

  public void setCName(String name) {
    this.cName = name;
  }

  public String getCType() {
    return this.cType;
  }

  public void setCType(String type) {
    this.cType = type;
  }
  
}